<template>
	<view class="body">
		<xk-header :headerbg="true" :back="true" title="维修物料明细"></xk-header>
		<!-- <view class="title">报修单号  20210601001</view> -->
		<view class="list" v-for="item of dataList">
			<view class="list-item">
				<view>{{item.material_name}}</view>
				<view class="right-title1">{{item.price}}元 x {{item.num}}({{item.unit}}) = {{(item.price * item.num).toFixed(2)}}元</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: []
			};
		},
		onLoad(options){
			this.dataList = JSON.parse(options.mates)
		},
		methods:{
		}
	}
</script>

<style lang="scss" scoped>

.title {
	margin: 20rpx 30rpx;
	font-size: 28rpx;
	color: #333;
	font-weight: bold;
}
.list {
	margin: 20rpx 30rpx;
	background-color: #FFFFFF;
	border-radius: 10rpx;

	.content-title{
		font-size: 32rpx;
		color: #333333;
		font-weight: bold;
		display: flex;
		align-items: center;
		padding: 32rpx 0rpx;
		.title-icon{
			width: 12rpx;
			height: 40rpx;
			background-color: #2C72FF;
			border-top-right-radius: 8rpx;
			border-bottom-right-radius: 8rpx;
			margin-right: 10rpx;
		}
	}
	.list-item {
		display: flex;
		flex-direction: row;
		align-items: center;

		color: #333;
		font-size: 28rpx;
		padding: 25rpx 20rpx;

		.right-title1{
			flex: 1;
			text-align: right;
			color: #333;
		}
	}
}

</style>
